package huashu.net.complain.service;

import huashu.net.complain.dao.IndicatorsDao;
import huashu.net.complain.databean.IndicatorDTO;
import huashu.net.complain.entity.Indicators;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;

import java.util.List;

@Service
public class IndicatorsService extends StringPKService<Indicators> {

	@Autowired
	private IndicatorsDao dao;
	
	@Override
	protected BaseDao getDao() {
		// TODO Auto-generated method stub
		return dao;
	}


	//各年总数
	public IndicatorDTO getAllYeatAmount(String area){
		return dao.getAllYearAmount( area);
	}

	//历年诉件量
	public List<IndicatorDTO> getAreaAmount()
	{
		return dao.getareaAmount();
	}

	//18类 总数
	public List<IndicatorDTO> getAllClassAmount()
	{
		return dao.getAllClassAmount();
	}

	//18类历年满意率
	public List<IndicatorDTO> getYearSatifyRate(String className)
	{
		return dao.getYearSatify(className);
	}
	//历年批转率
	public List<IndicatorDTO> getYearEndorseRate(String className)
	{
		return dao.getYearEndorseRate(className);
	}
	//历年回复率
	public List<IndicatorDTO> getReponseRate(String className)
	{
		return dao.getreponseRate(className);
	}
	//各个区县详细数据
	public List<IndicatorDTO> getDetailInfos(String area)
	{
		return  dao.getDetailInfo(area);
	}
	//18类 历年数据量
	public  List<IndicatorDTO> getYearAmount()
	{
		return  dao.getYearAmount();
	}

}
